package br.com.javagyn.OLD;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

import br.com.javagyn.model.base.EntidadeImpl;

@Entity
@Table(name = "pessoa")
@SequenceGenerator(name = EntidadeImpl.SEQUENCE_GENERATOR, sequenceName = "seq_tb_pessoa", allocationSize=1, initialValue=1)
public class Pessoa extends EntidadeImpl  {

	private static final long serialVersionUID = 2383916972855396934L;

	@NotEmpty
	@Size(max = 60)
	@Column(length = 60, nullable = false)
	private String nome;
	
	public Pessoa() {
		super();
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

}
